package cn.tqfeiyang.smartadmin.system.request;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.NotNull;

/**
 * 角色创建请求
 *
 * @author tqfeiyang
 * @since 2024/8/20 14:01
 */
@Data
public class RoleCreateDTO {

    /**
     * 编码
     */
    @Schema(description = "编码")
    @NotNull(message = "编码不能为空")
    @Length(max = 50, message = "编码不能超过50个字符")
    private String code;

    /**
     * 名称
     */
    @Schema(description = "名称")
    @NotNull(message = "名称不能为空")
    @Length(max = 80, message = "名称不能超过80个字符")
    private String name;

}
